

<%@ page import="com.surelution.projects.echo.domain.Blog" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'blog.label', default: 'Blog')}" />
        <resource:richTextEditor type="advanced" />
        <resource:calendarMonthView />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
	        <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
		</div>
        <div class="body">
        	<a href="index?month=<g:formatDate date="${currentDate }"  format="yyyy-MM"/>&lt;">&lt;&lt;</a>
        	&nbsp;&nbsp;
        	<g:formatDate date="${currentDate }" format="yyyy-MM"/>
        	&nbsp;&nbsp;
        	<a href="index?month=<g:formatDate date="${currentDate }" format="yyyy-MM"/>&gt;">&gt;&gt;</a>
            <richui:calendarMonthView locale="zh_CN" action="commentWithId" month="${currentDate}" createLink="true" items="${comments}" teaser="true" teaserLength="6" constraintDateFields="['createTime']" displayField="title"/>
        </div>
    </body>
</html>
